import request from '@/utils/request'

// 查询特征列表
export function listFeat(query) {
  return request({
    url: '/search/feat/list',
    method: 'get',
    params: query
  })
}

// 查询特征列表（排除节点）
export function listFeatExcludeChild(FeatId) {
  return request({
    url: '/search/feat/list/exclude/' + FeatId,
    method: 'get'
  })
}

// 查询特征详细
export function getFeat(FeatId) {
  return request({
    url: '/search/feat' + FeatId,
    method: 'get'
  })
}

// 新增特征
export function addFeat(data) {
  return request({
    url: '/search/feat',
    method: 'post',
    data: data
  })
}

// 修改特征
export function updateFeat(data) {
  return request({
    url: '/search/feat',
    method: 'put',
    data: data
  })
}

// 删除特征
export function delFeat(FeatId) {
  return request({
    url: '/search/feat/' + FeatId,
    method: 'delete'
  })
}

// 查询特征详细
export function listByParent(query) {
  return request({
    url: '/search/feat/listByParent',
    method: 'get',
    params: query
  })
}